<?php

namespace User\Form;

use Zend\Form\Form;
use Zend\InputFilter\InputFilter;
use Zend\Stdlib\Hydrator\ClassMethods as ClassMethodsHydrator;

class ModuleSettingsForm extends Form {
    public function __construct() {
    	parent::__construct('module_settings_form');

        $this->setAttribute('method', 'post')
        	 ->setAttribute('class', 'form-horizontal')
             ->setHydrator(new ClassMethodsHydrator(false))
             ->setInputFilter(new InputFilter());

        $this->add(array(
            'type' => 'User\Form\Fieldset\ModuleSettingsFieldset',
            'options' => array(
                'use_as_base_fieldset' => true
            )
        ));

        $this->add(array(
        	'type' => 'Zend\Form\Element\Submit',
            'name' => 'submit',
            'attributes' => array(
        		'class' => 'btn btn-default',
                'value' => 'Salve'
            )
        ));
    }
}